package persistence;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


public class JPAUtil {
	
	public static final String PERSISTENCE_UNIT = "default";
	
	public static EntityManagerFactory emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT);
	
	public static final EntityManager getEntityManager(){
		EntityManager em = emf.createEntityManager();
		return em;
	}
	

}
